/**
 * @ClassName Child
 * @Description: TODO
 * @Author: liaosheng
 * @Create: 2025-07-31 18:54
 * @Version 1.0
 **/
public class Child extends Parent {

    @Override
    public void add(int a,int b){
        if(a<0||b<0){
            throw new IllegalArgumentException("只能做正数加法");}
        super.add(a,b);
    }
}